package com.hl.sfzy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 私信表
 * @TableName secret
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Secret {
    /**
     * 私信编号
     */
    private Integer secretId;

    /**
     * 私信内容
     */
    private String secretText;

    /**
     * 会员编号（普通用户）外键
     */
    private Integer userId;

    /**
     * 私信时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date secretTime;

    /**
     * 咨询师编号  外键
     */
    private Integer consultantId;

    /**
     * 回复内容 
     */
    private String replyText;

    /**
     * 回复时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date replyTime;

    private User user;
    private Consultants consultants;

}